import 'package:json_annotation/json_annotation.dart';

part 'pay_info_form.g.dart';

@JsonSerializable()
class PayInfoForm {
  int id;
  //银行账户类型
  int accountType;
  //用户许可证
  String openingPermit;
  //开户银行
  String accountBank;
  //开户人姓名
  String accountName;
  //银行账号
  String accountNumber;
  //支付宝账号
  String alipayAccount;
  //开户银行省市编码
  String bankAddressCode;
  //银行卡反面
  String bankCardBack;
  //银行卡正面
  String bankCardPositive;
  //开户银行全称
  String bankName;
  //营业执照
  String businessLicense;
  //电子邮箱
  String email;
  //身份证人像面照片
  String idCardCopy;
  //身份证有效期结束
  String idCardEndTime;
  //身份证国徽面照片
  String idCardNational;
  //身份证号码
  String idCardNumber;
  //身份证有效期开始
  String idCardStartTime;
  //店内环境照片
  String indoorPic;
  //手机号码
  String phone;
  //门店门口照片
  String storeEntrancePic;
  //银行所在省
  String bankProvince;
  //银行所在市
  String bankCity;
  //银行所在区
  String bankDistrict;

  PayInfoForm({
    this.accountBank,
    this.accountName,
    this.accountNumber,
    this.alipayAccount,
    this.bankAddressCode,
    this.bankCardBack,
    this.bankCardPositive,
    this.bankName,
    this.businessLicense,
    this.email,
    this.idCardCopy,
    this.idCardEndTime,
    this.idCardNational,
    this.idCardNumber,
    this.idCardStartTime,
    this.indoorPic,
    this.phone,
    this.storeEntrancePic,
    this.accountType,
    this.openingPermit,
  });
  factory PayInfoForm.fromJson(Map<String, dynamic> srcJson) =>
      _$PayInfoFormFromJson(srcJson);

  Map<String, dynamic> toJson() => _$PayInfoFormToJson(this);
}
